import fetch from '@/utils/fetch';

export function gettoplist(data) { //消息头条
  return fetch({
    url: '/api/lottery.winlist/wnew',
    method: 'get',
    params:data||{}
  });
}

export function getWinList(id){ //获取中奖榜单列表 id=1 时时猜  id=2 分分猜
	let url='/api/lottery.winlist/day';
	if (id) {
		url+="/id/"+id;
	}
	return fetch({
		url,
	    method: 'get',
	    params:{}
	});
}